//
//  MineTableViewCell.m
//  QXShowing
//
//  Created by 王道道 on 2018/4/19.
//  Copyright © 2018年 doll_dream. All rights reserved.
//

#import "MineTableViewCell.h"

@implementation MineTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self setUpUI];
        [self _viewLayout];
    }
    return self;
}

- (void)setUpUI {
//    self.lineView = [[LineView alloc]init];
//    self.lineView.backgroundColor = Dividing_Line_Color;
//    [self.contentView addSubview:self.lineView];
//    [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.contentView).offset(15);
//        make.width.offset(App_Frame_Width - 30);
//        make.height.offset(BHLine_Height);
//        make.top.equalTo(self.contentView);
//    }];
    
    self.contentLabel = [[UILabel alloc]init];
//    self.contentLabel.textColor = Text_Color_706E80;
    self.contentLabel.font = BHFont_Size_15;
    [self.contentView addSubview:self.contentLabel];
    
    self.contentImage = [[UIImageView alloc]init];
//    self.contentImage.image = [UIImage imageNamed:@"ihome-7-1"];
    [self.contentView addSubview:self.contentImage];
}

- (void)_viewLayout {
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
//        make.left.equalTo(self.contentView).offset(15);
        make.centerX.equalTo(self.contentView);
    }];
    
    [self.contentImage mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.contentView);
        make.right.equalTo(self.contentView.mas_right).offset(- 15);
        make.width.height.offset(24);
    }];
}

@end
